home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group93b.txt / 000046_icon-group-sender _Tue Apr 27 08:45:32 1993.msg < prev    next >
Internet Message Format  |  1993-06-16  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Sun, 2 May 1993 06:17:44 MST
  2. Date: 27 Apr 93 08:45:32 GMT
  3. From: mercury.hsi.com!mlfarm!cs.arizona.edu!icon-group@uunet.uu.net
  4. Subject: Re: "Find that Niche!" contest?
  5. Message-Id: <9304270845.AA09147@ruls41.LeidenUniv.nl>
  6. Sender: icon-group-request@cs.arizona.edu
  7. To: icon-group@cs.arizona.edu
  8. Status: R
  9. Errors-To: icon-group-errors@cs.arizona.edu
  10.  
  11. I don't know whether finding a 'hot' or 'cool' application
  12. written *in* Icon would be so convincing. Of course,
  13. any good application written in Icon *supports* the
  14. language by means of illustration and a sort of
  15. "see what you can do in this language"-proof.
  16.  
  17. However, I think the main power of Icon lies in the
  18. possibility of reducing development time. I have
  19. implemented several psycholinguistic models using
  20. Icon in 2-3 hours, including a handy command-line
  21. interface. What struck me as one of the advantages
  22. of Icon in that context is that I could call procedures
  23. by their string values, so after defining a new procedure
  24. in the model, the user interface did not have to be 
  25. adapted; the new procedure could be called from the command
  26. line right away!
  27.  
  28. This sort of 'trics' usually surpises programmers in a positive
  29. way. I had a colleague (C programmer) turn whitish when he 
  30. saw me scramble (randomize) a file with:
  31.  
  32. procedure main(ar)
  33.     infile := open(ar[1]) | &input
  34.     lines := list()
  35.     every(put(lines,!infile))
  36.     every(?lines :=: !lines)
  37.     every(write(!lines))
  38.     close(infile)
  39. end
  40.  
  41. Now this rather innocent kind of program is so easy to 
  42. write in Icon that you'd have to run it a thousand times
  43. a day to justify writing it in C.
  44.  
  45. The unique thing of Icon (IMHO, of course) is that it
  46. reduces development time so drastically that it actually
  47. pays to use it, even when the performance is interpreter-like.
  48.  
  49. Maybe what would help to convince programmers if they are
  50. potential Icon enjoyers is a document that does not only 
  51. highlight Icon's features, but also compares these features
  52. with other programming languages like awk() en C(++). If 
  53. such a document is written well, it could be quite convincing.
  54.  
  55. Jan
  56.  
  57. ----------------------------------------------------
  58. Jan de Ruiter
  59. Leiden University  
  60. Dept. of Information Science for the Social Sciences
  61. The Netherlands
  62. ruiter@ruls41.leidenuniv.nl
  63.